<template>
    <!-- <van-cell to="/matron:id"> -->
    <van-cell class="home-staff" :to="'/matron/' + Clid">
    <!-- <van-cell :to="'/matron/' + homeList[1].id"> -->
    <div v-for="(item, index) in homeList" :key="index"  @click="ook(index)">
      <van-row>
        <van-col span="7" class="home-left">
          <van-image src="https://img01.yzcdn.cn/vant/cat.jpeg"/>
        </van-col>
        <van-col span="17" class="home-right">
          <h3>{{item.name}}{{homeList.name}} <span>{{item.monthly}}元/<i>26天</i></span></h3>
          <div class="home-right-button">
            <van-button plain hairline type="info" size="mini" round>{{item.star}}</van-button>
            <van-button plain hairline type="info" size="mini" round>{{item.suffer}}</van-button>
          </div>
          <p>{{item.site}}&nbsp;|&nbsp;{{item.age}}岁&nbsp;|&nbsp;服务{{item.serve}}户&nbsp;|&nbsp;评价{{item.evaluate}}条</p>
        </van-col>
        <van-col span="22" class="home_botton"></van-col>
      </van-row>
    </div>
    </van-cell>
</template>

<script>
export default {
  name: 'HomeStaff',
  components: {},
  props: {
    homeList: {
      type: Array,
      required: true
    }
  },
  data () {
    return {
      Clid: null // 点击获取序号
    }
  },
  computed: {},
  watch: {},
  created () {
  },
  mounted () {
  },
  methods: {
    ook (index) {
      this.Clid = this.homeList[index].id
    }
  }
}
</script>
<style scoped lang='less'>
.home-staff {
  .home-left {
    margin-top: 12px;
    .van-image {
      margin-left: 18px;
      width: 80px;
      height: 86px;
    }
  }
  .home-right {
    margin-top: 12px;
    box-sizing: border-box;
    padding-left: 5px;
    .home-right-button {
      height: 25px;
      margin-top: 10px;
      .van-button {
        float: left;
      }
    }
    h3 {
      font-size: 14px;
      color: #000;
      line-height: 20px;
      margin: 0;
      span {
        float: right;
        margin-right: 18px;
        color: #999393;
        i {
          font-size: 12px;
          font-weight: normal;
        }
      }
    }
    p {
      font-size: 12px;
      color: #9C979191;
      line-height: 17px;
      margin: 12px 0 0 0;
    }
  }
  .home_botton {
    margin: 15px 0 0 18px;
    border-bottom: 1px solid #F0EEEE;
  }
  /deep/.van-nav-bar__title {
    color: #9C7B7777;
    font-size: 12px;
  }
}
</style>
